package cn.myfirefly.moming.common.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "mm_role_data_auth")
public class MmRoleDataAuth implements java.io.Serializable {
		
	/**
	 * 
	 */
	private static final long serialVersionUID = 7144798410315607362L;
	//columns START
	/** id */
	private Integer id;
	/** dataAuthTypeId */
	private Integer dataAuthTypeId;
	/** dataAuthObjectId */
	private Integer dataAuthObjectId;
	
	private Integer funSn;
	private Integer roleSn;
	//columns END

	/**
	 * id
	 * @return
	 */
	@Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}
	
	/**
	 * id
	 * @param value
	 */
	public void setId(Integer value) {
		this.id = value;
	}
		
	/**
	 * dataAuthTypeId
	 * @return
	 */
	@Column(name = "data_auth_type_id", nullable = false)
	public Integer getDataAuthTypeId() {
		return this.dataAuthTypeId;
	}
	
	/**
	 * dataAuthTypeId
	 * @param value
	 */
	public void setDataAuthTypeId(Integer value) {
		this.dataAuthTypeId = value;
	}
		
	/**
	 * dataAuthObjectId
	 * @return
	 */
	@Column(name = "data_auth_object_id", nullable = false)
	public Integer getDataAuthObjectId() {
		return this.dataAuthObjectId;
	}
	
	/**
	 * dataAuthObjectId
	 * @param value
	 */
	public void setDataAuthObjectId(Integer value) {
		this.dataAuthObjectId = value;
	}

	@Column(name = "fun_sn", nullable = false)
	public Integer getFunSn() {
		return funSn;
	}

	public void setFunSn(Integer funSn) {
		this.funSn = funSn;
	}

	@Column(name = "role_sn", nullable = false)
	public Integer getRoleSn() {
		return roleSn;
	}

	public void setRoleSn(Integer roleSn) {
		this.roleSn = roleSn;
	}
		
}

